package com.zixi.ai.rag.entity;

import com.alibaba.fastjson2.JSONObject;
import com.zixi.ai.framework.entity.ExtBaseEntity;
import com.zixi.ai.framework.entity.convert.JSONObjectConverter;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.persistence.Convert;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
import lombok.Getter;
import lombok.Setter;

/**
 * @author wfg
 */
@Getter
@Setter
@Entity
@Table(name = "zx_ai_resource")
@Tag(name = "AiResourceEntity", description = "素材库")
public class AiResourceEntity extends ExtBaseEntity {
    /**
     * 素材类型
     */
    private Integer resourceType;

    /**
     * 素材名称
     */
    private String resourceName;

    /**
     * 后缀
     */
    private String suffix;

    /**
     * 素材地址
     */
    private String resourceUrl;

    /**
     * 素材来源
     */
    private Integer origin;

    /**
     * 数据状态
     */
    private Integer status;

    /**
     * 扩展项
     */
    @Convert(converter = JSONObjectConverter.class)
    private JSONObject options;
}
